package com.java8.lambda;

import java.util.List;
import java.util.stream.Collectors;

public class Chapter3 {

	public static void main(String[] args) {
		
	}
	
	private int countMember(List<Artist> list){
		return list.stream().map(item -> item.getMembers().count()).reduce(0L, Long::sum).intValue();
	}
	private List<Long> countMemberList(List<Artist> list){
		return list.stream().map(item -> item.getMembers().count()).collect(Collectors.toList());
	}
}
